{config_load file="global.conf"}
{config_load file="_TraderForecasts.conf" section="`$lang`"}
{* ========================================================== *}
{* Errors area *}
<div id="divTraderOpenTable_Errors">
{*<ul id="errors">   </ul>*}
</div>
{* /Errors area *}
<a onclick="xajax_reloadTraderOpen(); xajax_showLastRates({$Staff->UserID()}); return false;"> Reload </a>
{* ========================================================== *}
{* Main table *}
<div id="divTraderOpenTable">
<form method="post" enctype="multipart/form-data"  {*onSubmit="return validateForm( this, 1, 0, 0, 1, 16); "*} id="frmTraderRowUpdate" name="frmTraderRowUpdate">
<table  border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff"  class="dasboard">
{* ========================================================== *}
{* Header *}

    <tr id="divTraderOpenTable_Header">
        <td width="73"><b>{#_TraderForecasts__labelForecastID#}{*ForecastID*}</b></td>
        <td width="80"><b>{#_TraderForecasts__labelOpenTime#}{*OpenTime*}</b></td>
        <td width="70"><b>{#_TraderForecasts__labelPair#}{*Currency*}</b></td>
        <td width="70"><b>{#_TraderForecasts__labelAction#}{*Action*}</b></td>
        <td width="40" colspan="2"><b>{#_TraderForecasts__labelSize#}{*Lots*}</b></td>
        <td width="40"><b>{#_TraderForecasts__labelClose#}{*Close*}</b></td>
        <td width="40"><b>{#_TraderForecasts__labelOpenPrice#}{*Open*}</b></td>
        <td width="60" colspan="2"><b>{#_TraderForecasts__labelStop#}{*Stop Loss*}</b></td>
        <td width="60" colspan="2"><b>{#_TraderForecasts__labelTakeProfit#}{*Take Pofit*}</b></td>
        <td width="60"><b>{#_TraderForecasts__labelUpdate#}{*Update*}</b></td>
        <td width="40"><b>{#_TraderForecasts__labelProfit#}{*Profit*}</b></td>
    </tr>

{* /Header *}
{* ========================================================== *}
{* Rows *}

{foreach key="ForecastIndex" name="forecasts" item="itemForecast" from=$ForecastArr}
    <tr id="divTraderOpenTable_Row_{$itemForecast.ForecastID}">
    {include file="trader/_TraderForecasts_Row.tpl" Forecast=`$itemForecast` lang=`$lang`}
    </tr>
{/foreach}

{* /Rows *}
{* ========================================================== *}
{* Footer *}

    <tr id="divTraderOpenTable_Footer">
        <td colspan="13"><b>{#_TraderForecasts__labelTotalProfit#}{*TotalProfit*}</b></td>
        <td align="right"><b>
            <div id="divTraderOpenTable_TotalProfit" >
                {include file="trader/_TraderForecasts_Profit.tpl" Active="1" Profit=`$TotalProfit`}
            </div>
        </b></td>
    </tr>

{* /Footer *}
{* ========================================================== *}
</table>
</form>
{* /Main table *}
</div>
{* ========================================================== *}
